{{ if ($beginopen) }}
<div id="dialogsearpanel">
<form name = "fmseam">
<input type="text" name="name" value="{{ $nameval }}" class="text" />&nbsp;
<button type="button" class="btn_filtermuti" id="idbtn_filtermuti"  >絞込</button>
</form>

</div>
<div id = "diologlistmuti">
{{ /if }}
	<div class="serach_pageing">
		<p align="left" >{{$pageing}}</p>
	</div>
	<div id="serach_result_muti" class="serach_result">
		<table style="width:100%">
	{{ if ($paraname == 'ins_shop') }}	
		{{ foreach from=$data key=k item=v name='member' }}
		<tr class='selmuti'><td><a href="javascript:li_addm('{{ $v.ins_shop_cd_para }}','{{ $v.ins_shop_name_para }}')" style='color:blue'>{{ $v.ins_shop_cd_disp }}&nbsp;&nbsp;{{ $v.ins_shop_name }}</a></td>
		<td>{{ $v.local_name }}{{ if ($v.cnt > 0) }} <a href='javascript:dsp_shop("{{ $v.shopnames }}")' style='color:blue'> [{{ $v.cnt }}]</a>{{ /if }}
		</td><td>{{ $v.media_name }}</td></tr>
		{{ /foreach }}
	{{ elseif ($paraname == 'ins_shop_patt') }}
		{{ foreach from=$data key=k item=v name='member' }} 
		<tr class='selmuti'><td><a href="javascript:li_add('{{ $v.ins_shop_cd_para }}','{{ $v.ins_shop_name_para }}','{{ $v.insert_conums }}','{{ $v.area_pattern_cd}}','{{ $v.pattern_name }}','{{ $v.area_adnums }}','{{ $v.area_memo }}','{{ $v.memo }}')"
		 style='color:blue'>{{ $v.ins_shop_cd_disp }}&nbsp;&nbsp;{{ $v.ins_shop_name }}</a></td>
		<td>{{ $v.local_name }}{{ if ($v.cnt > 0) }} <a href='javascript:dsp_shop("{{ $v.shopnames }}")' style='color:blue'> [{{ $v.cnt }}]</a>{{ /if }}
		</td><td>{{ $v.media_name }}</td></tr>
		{{ /foreach }}
	{{ elseif ($paraname == 'map_shop') }}
		{{ foreach from=$data key=k item=v name="member" }}
		<tr class="selmuti"><td><a href="javascript:li_a_map('{{ $v.shop_cd }}','{{ $v.shop_name }}','{{ $v.smx }}')" style="color:blue">{{ $v.shop_cd }}&nbsp;&nbsp;{{ $v.shop_name }}</a></td><td>{{ $v.local_name }}</td></tr>
		{{ /foreach }}
	{{ elseif ($paraname == 'service') }}
		{{ foreach from=$data key=k item=v name="member" }}
		<tr class="selmuti"><td><a href="javascript:li_a_map('{{ $v.mservice_cd }}','{{ $v.mservice_name }}','')" style="color:blue">{{ $v.mservice_cd }}&nbsp;&nbsp;{{ $v.mservice_name }}</a></td></tr>
		{{ /foreach }}
	{{ else }}
		{{ foreach from=$data key=k item=v name="member" }}
		<tr class="selmuti"><td><a href="javascript:li_addm('{{ $v.shop_cd }}','{{ $v.shop_name }}')" style="color:blue">{{ $v.shop_cd }}&nbsp;&nbsp;{{ $v.shop_name }}</a></td><td>{{ $v.local_name }}</td></tr>
		{{ /foreach }}
	{{ /if }}
		</table>
	</div>
{{ if ($beginopen) }}
</div>
<div id = "diologselectedmuti">
	<ul id="pop_ul" class="item_pop_ul"> </ul>
</div>

<script type="text/javascript">

$('.btn_filtermuti').click(function(){
	var urlPara = makeMutiSearchURL('{{ $paraname }}', document.fmseam.name.value); 
	urlPara = urlPara + "&sear=1"
	$("#diologlistmuti").load(urlPara);
});


function dsp_shop(val) {
	alert(val.replace(/,/g , "\n"));

}

function toPageS(thepage) {
	var urlPara = makeMutiSearchURL('{{ $paraname }}', document.fmseam.name.value); 
	urlPara = urlPara + "&page=" + thepage;
	urlPara = urlPara + "&sear=1"
	$("#diologlistmuti").load(urlPara);
}
$('input').keypress(function(ev) {
	if ((ev.which && ev.which === 13) || (ev.keyCode && ev.keyCode === 13)) {
		$("#idbtn_filtermuti").trigger("click") 
		return false;
	} else {
		return true;
	}
});
function li_addm(inID, inVal) {
	
	li_add("pop",inID, inVal);
}
document.fmseam.name.focus();
</script>
{{ /if }}

	